using System;
using System.Diagnostics;
using System.Security.Cryptography;
using System.Text;
using Xunit;
using Xunit.Abstractions;

namespace XUnitTestProject1
{
    public class UnitTest1
    {
        private readonly ITestOutputHelper output;

        public UnitTest1(ITestOutputHelper output)
        {
            this.output = output;
        }

        [Fact]
        public void Test1()
        {
            string password = "123456";
            using (MD5 md5 = MD5.Create())
            {
                byte[] hash = md5.ComputeHash(Encoding.UTF8.GetBytes(password));
                string md5Str = BitConverter.ToString(hash).Replace("-","");
                output.WriteLine(md5Str);
                byte[] hash2 = md5.ComputeHash(Encoding.UTF8.GetBytes(password));
                string md5Str2 = BitConverter.ToString(hash2).Replace("-", "");
                output.WriteLine(md5Str2);
            }
        }

        [Fact]
        public void Redis_Test()
        {
//            RedisTest redisTest = new RedisTest();
//
//            redisTest.RedisUseTest();

        }
    }


}
